import { Meta } from '@storybook/blocks';
import YouTubeVideoPlayer from '@/components/YouTubeVideoPlayer';
import * as ListViewStories from '../stories/ListView.stories';

<Meta of={ListViewStories} />

# ListView

A scrollable list of widgets arranged linearly.

<YouTubeVideoPlayer videoId="KJpkjHGiI5A" />

## Example

```dart liveslice=ListView
ListView(
  padding: const EdgeInsets.all(8.0),
  children: <Widget>[
    Container(
      height: 50,
      color: Colors.amber[600],
      child: const Center(child: Text('Entry A')),
    ),
    Container(
      height: 50,
      color: Colors.amber[500],
      child: const Center(child: Text('Entry B')),
    ),
    Container(
      height: 50,
      color: Colors.amber[100],
      child: const Center(child: Text('Entry C')),
    ),
  ],
)
```

## Related Links

- https://api.flutter.dev/flutter/widgets/ListView-class.html
- https://youtu.be/KJpkjHGiI5A
